﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopMenu.ascx.cs" Inherits="UserControls_TopMenu" %>

<script type="text/javascript">

function bookmark(){
    var title=document.title
    var url=document.location.href
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if( window.opera  &&  window.print ){
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}

function homepage(){
    var url = document.location.href;

    if(confirm("是否将'" + url + "'设为首页？")){
        this.style.behavior='url(#default#homepage)';this.sethomepage(url);
    }
}

</script>

<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" id="tabctr"
    runat="server">
    <tr>
        <td width="230" rowspan="3" valign="middle">
            <a href="Default.aspx">
                <img src="http://about" id="imglogo" runat="server" />
            </a>
        </td>
        <td width="680" height="4" style="text-align: right;">
        </td>
    </tr>
    <tr>
        <td width="700" height="33">
            <div align="center">
                <asp:Label ID="lbWelcome" runat="server" Visible="False" Font-Bold="True"></asp:Label>
                <a href="Default.aspx?PN=Login" id="alogin">
                    <asp:Label ID="lblogin" runat="server" Text="会员请[登录]"></asp:Label></a>
                <asp:LinkButton ID="lbExit" runat="server" OnClick="lbExit_Click">[安全退出]</asp:LinkButton>
                <a href="Default.aspx?PN=register">
                    <asp:Label Text="新用户请[注册]" runat="server" ID="lbReg"></asp:Label></a> <a href=""
                        onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage(strHref);"
                        style="cursor: hand">设为首页</a>&nbsp; <a href="javascript:bookmark()">加入收藏夹</a>
                <img src="images/UserControls/telHelp.jpg" />
            </div>
        </td>
    </tr>
    <tr>
        <td height="38" valign="bottom">
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="100" height="4">
                    </td>
                </tr>
            </table>
            <table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="10">
                    </td>
                    <td id="td_01" runat="server" width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="../Default.aspx" class="Meun" id="a_01" runat="server">首 页</a></div>
                    </td>
                    <td width="4">
                    </td>
                    <td id="td_02" runat="server" width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="../Default.aspx?PN=goods_search_list" class="Meun" id="a_02" runat="server">商品中心</a></div>
                    </td>
                    <td width="4">
                    </td>
                    <td id="td_03" runat="server" width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="../Default.aspx?PN=member_home" class="Meun" id="a_03" runat="server">会员中心</a></div>
                    </td>
                    <td width="4">
                    </td>
                    <td id="td_04" runat="server" width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="../Default.aspx?PN=Service&TypeID=1" class="Meun" id="a_04" runat="server">服务中心</a></div>
                    </td>
                    <td width="3">
                    </td>
                    <td id="td_05" runat="server" width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="../Default.aspx?PN=about_us&amp;Type=about_us" class="Meun" id="a_05" runat="server">联系本站</a></div>
                    </td>
                    <td width="4">
                    </td>
                    <%--<td width="90" background="images/UserControls/index_1_01.jpg">
                        <div align="center">
                            <a href="bbs/" target="_blank" class="Meun">交流园地</a></div>
                    </td>--%>
                </tr>
            </table>
        </td>
    </tr>
</table>
